﻿using DocumentFormat.OpenXml.Bibliography;
using System;
using System.Collections;
using System.Collections.Generic;

namespace QueueApplication
{
   
   class Program
        {
            static void Main(string[] args)
            {
                Queue q = new Queue();

                q.Enqueue('a');
                q.Enqueue('b');
                q.Enqueue('c');
                q.Enqueue('d');

                Console.WriteLine("Current queue: ");
                foreach (char c in q)
                    Console.Write(c + " ");
                Console.WriteLine();
                q.Enqueue('e');
                q.Enqueue('f');
                Console.WriteLine("Current queue: ");
                foreach (char c in q)
                    Console.Write(c + " ");
                Console.WriteLine();
                Console.WriteLine("Removing some values ");
                char ch = (char)q.Dequeue();
                Console.WriteLine("The removed value: {0}", ch);
                ch = (char)q.Dequeue();
                Console.WriteLine("The removed value: {0}", ch);
                Console.ReadKey();
            }
        }
    }


